<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>localStorage的存和取</title>
    <script src="../js/jquery-1.8.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            window.localStorage.setItem("username","aa");
            $("#show").append(window.localStorage.getItem("username"));
        })

    </script>

</head>
<body>
<div id="show"></div>
</body>
</html>